package com.guotd.ticketSystemPlus.mapper;

import com.guotd.ticketSystemPlus.entity.Schedule;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface ScheduleMapper {

    List<Schedule> getSchedules();

    List<Schedule> getSchedulesByPage(@Param("offset") int offset, @Param("pageSize") int pageSize);

    int getTotalCount();

    int addSchedule(Schedule schedule);

    int delSchedule(@Param("id") String id);

    int updateSchedule(Schedule schedule);
}
